package my.jwds.p1672;

public class MaximumWealth {

    public static void main(String[] args) {

        Solution obj = new Solution();
        long start = System.currentTimeMillis();
        System.out.println("运行时间:" + (System.currentTimeMillis() - start));
    }

    static class Solution {

        public int maximumWealth(int[][] accounts) {
            int max = 0;
            for (int i = 0; i < accounts.length; i++) {
                int sum = 0;
                for (int j = 0; j < accounts[i].length; j++) {
                    sum+=accounts[i][j];
                }
                max = Integer.max(max,sum);
            }
            return max;
        }
    }
}